import axios from "axios";
import {AccountUrl} from "@/constants/Url";
import {AccountQuery} from "@/types/account";

class AccountApi {
    getList(params: AccountQuery) {
        return axios.get(AccountUrl.getList(), { params })
            .then(response => response.data)
            .catch(e => {
                throw e;
            })
    }
}

export default new AccountApi()